package com.zzty.zzlp.serviceimpl;

import com.zzty.zzlp.dao.ArticleMapper;
import com.zzty.zzlp.dao.User_infoMapper;
import com.zzty.zzlp.dao.ProjectMapper;
import com.zzty.zzlp.entity.*;
import com.zzty.zzlp.service.User_infoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class User_infoServiceImpl implements User_infoService {


    @Autowired
    User_infoMapper um;
    @Autowired
    ProjectMapper pm;
    @Autowired
    ArticleMapper am;

    @Override
    public User_info selectByPrimaryKey(Integer user_id) {
        return um.selectByPrimaryKey(user_id);
    }

    @Override
    public int updateByPrimaryKeySelective1(User_info record) {
        return um.updateByPrimaryKeySelective1(record);
    }

    @Override
    public List<SelfExam> sel(int clazzId, int Num1, int Num2) {
        return um.sel(clazzId, Num1, Num2);
    }

    @Override
    public List<TeamExam> te(int clazzId, int Num1, int Num2) {
        return um.te(clazzId, Num1, Num2);
    }


    @Override
    public Question getqu(int id) {
        return um.getqu(id);
    }

    @Override
    public List<Project> selproy(Integer id) {
        return pm.selectByPrimaryKey(id);
    }

    @Override
    public int upImg(String photo, int id) {
        return um.upImg(photo, id);
    }

    @Override
    public int del(int id) {
        return pm.del(id);
    }

    @Override
    public int ins(Project project) {
        return pm.ins(project);
    }

    @Override
    public Article Asel(Integer userId) {
        return am.Asel(userId);
    }

    @Override
    public int insertA1(Article record) {
        return am.insertA1(record);
    }

    @Override
    public int del1(Integer userId) {
        return am.del(userId);
    }

    @Override
    public int del2(Integer id) {
        return am.del2(id);
    }


}

